package com.example.gulimallcoupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 优惠券分类关联
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:42:24
 */
//@Data
@TableName("sms_coupon_spu_category_relation")
public class CouponSpuCategoryRelationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 优惠券id
	 */
	private Long couponId;
	/**
	 * 产品分类id
	 */
	private Long categoryId;
	/**
	 * 产品分类名称
	 */
	private String categoryName;

	public CouponSpuCategoryRelationEntity() {
	}

	public CouponSpuCategoryRelationEntity(Long id, Long couponId, Long categoryId, String categoryName) {
		this.id = id;
		this.couponId = couponId;
		this.categoryId = categoryId;
		this.categoryName = categoryName;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return couponId
	 */
	public Long getCouponId() {
		return couponId;
	}

	/**
	 * 设置
	 * @param couponId
	 */
	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}

	/**
	 * 获取
	 * @return categoryId
	 */
	public Long getCategoryId() {
		return categoryId;
	}

	/**
	 * 设置
	 * @param categoryId
	 */
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * 获取
	 * @return categoryName
	 */
	public String getCategoryName() {
		return categoryName;
	}

	/**
	 * 设置
	 * @param categoryName
	 */
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String toString() {
		return "CouponSpuCategoryRelationEntity{id = " + id + ", couponId = " + couponId + ", categoryId = " + categoryId + ", categoryName = " + categoryName + "}";
	}
}
